#include "Label.h"
#ifdef _MSC_VER
#define _CRT_SECURE_NO_WARNINGS
#endif
int Label::no = 0;
Label::Label()
{
	name = "";
	no++;
	_n = no;
}

Label::Label(string labelName)
{
	name = labelName;
}


Label::~Label()
{
}
string Label::ToRTL()
{
	char buf[255];
	if (name.length() > 0)
		return name;
	else
	{
		_itoa_s(_n, buf, 255, 10);
		return "L" + string(buf);
	}
}
